package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


@Getter
@Setter
public class Gathering {
    private Long id;

    //学员
    private PotentialStudent student;

    //学员对应班级
    private Grade grade;

    //收款时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "CMT+8")
    private Date time;

    //收款金额
    private BigDecimal money;

    //未缴金额
    private BigDecimal owe;

    //付款类型
    private String type;

    //收款人
    private Employee gatheringMan;

    //单据号
    private String sn;

    //备注
    private String remark;

    //审核状态
    private boolean state;

    //审核人员
    private Employee auditorMan;

    //营销人员
    private Employee saleMan;


}